package com.microservices.cloud.dao;

import com.microservices.cloud.entities.Payment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface PaymentDao {


    /**
     * 创建支付订单
     *
     * @param payment
     * @return
     */
    public int createPayment(Payment payment);

    /**
     * 通过支付id查询支付信息
     *
     * @param id
     * @return
     */
    public Payment getPaymentById(@Param("id") Long id);

}
